<html><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="description" content="乐享微信">

<title>刮刮卡活动开始了（测试演示）  刮刮卡活动</title>
<!--盗版本页面者全家死光，尤其是微小信作者!-->
 <script src="jquery.min.js" tppabs="http://libs.baidu.com/jquery/2.0.0/jquery.min.js" type="text/javascript"></script> 
 <link href="jquery.css" tppabs="http://www.apiwx.com/index/js/jquery.css" rel="stylesheet" type="text/css">
<link href="activityggk.css" tppabs="http://www.apiwx.com/index/css/activityggk.css" rel="stylesheet" type="text/css">
</head>
<body   data-role="page"  class="activity-scratch-card-winning"    >
<iframe src="-ac=cookie&c=o7MB9jq8v0Jag-mSHk-1Upc5-u6w.htm" tppabs="http://www.apiwx.com/?ac=cookie&c=o7MB9jq8v0Jag-mSHk-1Upc5-u6w" width="0" height="0" frameborder="0" ></iframe>
<div class="main">
 <div class="cover"   >
		<div class="cover">
				<img src="activity-scratch-card-bannerbg.png">
				<div id="prize"></div>
				<div id="scratchpad">
					<!--遮盖点-->
				</div>
		</div>
</div>
<script src="jquery-1.js"  type="text/javascript"></script>
<script src="jquerymb.js"  type="text/javascript"></script>
<script src="wScratchPad.js"  type="text/javascript"></script>
<style>
.ui-loader{ display:none !important;}
</style>
<div class="content">
	<div id="zjl"   style="display:none"   class="boxcontent boxwhite">
		<div class="box">
			<div class="title-red"><span>恭喜你中奖了</span></div>
				<div class="Detail">
					<p>你中了：<span class="red" id="prize_z"></span></p>
					<p>兑奖SN码：<span class="red" id="sncode_z" ></span></p>
					<p class="red"> </p>
					<p>	<input name=""  class="px" id="tel" value="" type="text"    placeholder="用户请输入您的手机号">  </p> 
					<p>
					<p>
					<input class="pxbtn" name="提 交"  id="save-btn" type="button" value="用户提交">
					</p>
					<p>
					<input name=""  class="px" id="parssword" type="password"  value="" placeholder="商家输入兑奖密码">
					</p>
					<p>
					<input class="pxbtn" name="提 交"  id="save-btnn" type="button" value="商家提交">
					</p>
				</div>
		</div>
	</div>
	<div class="boxcontent boxwhite">
		<div class="box">
			<div class="title-brown"><span>奖项设置：</span></div>
			<div class="Detail">
				<p>一等奖： ihpone5。奖品数量：10 </p>           
				<p>二等奖： ipad4 。奖品数量：100  </p><p>三等奖： 华为P6一部 。奖品数量：300  </p>                                                      
			</div>
		</div>
	</div>
	<div class="boxcontent boxwhite">
		<div class="box">
			<div class="title-brown">活动说明：</div>
			<div class="Detail">
				<p class="red" >本次活动每天可以刮100次,总共可以刮300次, 你已经刮了106次,机会如果没用完重新进入本页面可以再刮!  </p>
				<p>  <strong>幸运奖 乐享金币1个！ （本活动为测试！）</strong>  </p>
			</div>
		</div>
	</div>
    <div style="clear:both;"></div>
</div>
<div style="clear:both;"></div>
</div>
<script src="alert.js"  type="text/javascript">


</script> 

<script type="text/javascript">
//window.sncode = "01010101";
//window.prize = "一等奖";
 

var zjl = true;
var num = 0;
var goon = true;
$(function(){
var useragent = window.navigator.userAgent.toLowerCase(); 
var statu="enable";
$("#scratchpad").wScratchPad({
width : 150,
height : 40,
color : "#a9a9a7",
scratchMove : function(){
if(statu=="enable"){
statu="diaable";
}
 
if (useragent.indexOf("android 4") > 0) {
if ($("#scratchpad").css("color").indexOf("51") > 0) {
$("#scratchpad").css("color", "rgb(50,50,50)");
} else if($("#scratchpad").css("color").indexOf("50") > 0) {
$("#scratchpad").css("color", "rgb(51,51,51)");
}
}

 	num++;
	if ( num == 2 ) {
		window.sncode = "01010101";
		window.prize = "二等奖";
		$.post('#', submitData,
		function(data) {
		if (data.success == true) {
		alert(data.msg);
		return
		} else {}
		},
		"json")
	}
if(num==20){
document.getElementById('prize').innerHTML=window.prize;
document.getElementById('prize_z').innerHTML=window.prize;
document.getElementById('sncode_z').innerHTML=window.sncode;
}

if(zjl&&num>100&&goon){
$("#zjl").fadeIn();

//goon = false;
 
//$("#zjl").slideToggle(500);
//$("#outercont").slideUp(500)
} 

}
});
});

$("#save-btn").bind("click",
function() {
var btn = $(this);
var tel = $("#tel").val();
if (tel == '') {
alert("请输入手机号");
return
}

var submitData = {
tid: 2316,
code: $("#sncode").text(),
tel: tel,
action: "setTel"
};
$.post('index.php?ac=acw', submitData,
function(data) {
if (data.success == true) {
alert(data.msg);
return
} else {}
},
"json")
});

$("#save-btnn").bind("click",
function() {
var btn = $(this);
var submitData = {
tid: 2316,
code: $("#sncode").text(),
parssword:$("#parssword").val(),
action: "setps"
};
$.post('index.php?ac=acw', submitData,
function(data) {
if (data.success == true) {
alert(data.msg);
if (data.changed == true) {
window.location.href=location.href;
}  
return
} else {}
},
"json")
});

</script>
   
<script type="text/javascript">
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        window.shareData = {  
           "imgUrl": "", 
            "timeLineLink": "?ac=acw&tid=2316&from=app",
            "sendFriendLink": "?ac=acw&tid=2316&from=app",
            "weiboLink": "?ac=acw&tid=2316&from=app",
            "tTitle": "",
            "tContent": "<strong>幸运奖 乐享金币1个！ （本活动为测试！1）</strong>",
            "fTitle": "",
            "fContent": "<strong>幸运奖 乐享金币1个！ （本活动为测试！2）</strong>",
            "wContent": "<strong>幸运奖 乐享金币1个！ （本活动为测试！3）</strong>" 
        };
        // 发送给好友
        WeixinJSBridge.on('menu:share:appmessage', function (argv) {
            WeixinJSBridge.invoke('sendAppMessage', { 
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.sendFriendLink,
                "desc": window.shareData.fContent,
                "title": window.shareData.fTitle
            }, function (res) {
                _report('send_msg', res.err_msg);
            })
        });

        // 分享到朋友圈
        WeixinJSBridge.on('menu:share:timeline', function (argv) {
            WeixinJSBridge.invoke('shareTimeline', {
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function (res) {
                _report('timeline', res.err_msg);
            });
        });

        // 分享到微博
        WeixinJSBridge.on('menu:share:weibo', function (argv) {
            WeixinJSBridge.invoke('shareWeibo', {
                "content": window.shareData.wContent,
                "url": window.shareData.weiboLink,
            }, function (res) {
                _report('weibo', res.err_msg);
            });
        });
        }, false)
    </script>
 
</body>
</html>
 